import numpy as np


class Task56:
    def run(self, array):
        i = np.int32(0)
        for num in array:
            i = i ^ np.int32(num)

        count = 0
        while i % 2 != 1:
            i = i >> 1
            count += 1

        i1 = np.int32(0)
        i2 = np.int32(0)
        for num in array:
            if (num >> count) % 2 == 1:
                i1 = i1 ^ np.int32(num)
            else:
                i2 = i2 ^ np.int32(num)
        return i1, i2
